<div ng-if="pagedata.info.show==1" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			<i class="closed icon icon-cuowu" style="top: 105%;font-size:46rpx;" ng-click="pagedata.info.show=0"></i>
			<div class="weui_cells" style="margin:2%">
			<div class="weui_cell" id="r-result">
				<div class="weui_cell_bd weui_cell_primary">客户姓名:</div>
				<div class="weui_cell_ft" >{{pagedata.info.name}}</div>
			</div>
			<div class="weui_cell" id="r-result">
				<div class="weui_cell_bd weui_cell_primary">联系电话:</div>
				<div class="weui_cell_ft" >{{pagedata.info.mobile}}</div>
			</div>
			<div class="weui_cell" id="r-result">
				<div class="weui_cell_bd weui_cell_primary" style="min-width:5rem">客户地址:</div>
				<div class="weui_cell_ft">{{pagedata.info.address}}</div>
			</div>
			<div class="fui-icon-group noborder col-3">
                <a class="fui-icon-col external" href="">
					<div class="text" style="color: #666666;">服务距离</div>
                    <div class="icon"><i class="icon jinyunicon icon-ditu"/></div>
                    <div class="text" style="color: #F60;">周边服务</div>
                </a>
                <a class="fui-icon-col external" href="">
					<div class="text" style="color: #666666;">预计时间</div>
                    <div class="icon"><i class="icon jinyunicon icon-shijian"/></div>
                     <div class="text" style="color: #F60;">{{pagedata.info.time || '60'}}分钟</div>
                </a>
                <a class="fui-icon-col external" href="" data-nocache="true">
					<div class="text" style="color: #666666;">预计价格</div>
                    <div class="icon"><i class="icon jinyunicon icon-goumai"/></div>
                    <div class="text" style="color: #F60;">￥{{pagedata.pluginset.close_fee==1?'**.**':pagedata.info.price}}元</div>
                </a>
			</div>
			<button ng-if="!pagedata.show_goto" class="weui_btn weui_btn_primary" style="background:#cdab6a;line-height:2.8;margin: auto;margin-top:60rpx;width:60%;" ng-click="post(pagedata.info,'/d_wait/ok/')">接单</button>
			<button ng-if="!pagedata.show_goto" class="weui_btn weui_btn_disabled weui_btn_default" style="line-height:2.8;margin: auto;margin-top:16rpx;width:60%;color:#04be02;margin-top:0.3rem" ng-click="post(pagedata.info,'/d_wait/no/')">拒绝</button>
			<button ng-if="pagedata.show_goto" class="weui_btn weui_btn_primary" style="background:#cdab6a;line-height:2.8;margin: auto;margin-top:60rpx;width:60%;"  ng-click="pagedata.openLocation('',pagedata.info.address);">导航</button>
			<button ng-if="pagedata.show_goto" class="weui_btn weui_btn_disabled weui_btn_default" style="line-height:2.8;margin: auto;margin-top:16rpx;width:60%;color:#04be02;margin-top:0.3rem" ng-click="access_json('jy_cxjxiche/worker_order//id='+pagedata.info.id)">查看订单</button>
			</div>
		</div>
	</div>
</div>
<script>
scope.pagedata.openLocation=function(item,address){
	var pcdaddress= item.pcd?item.pcd.province+item.pcd.city+item.pcd.district+item.pcd.street:'';
	var post={
		'address':address?address:pcdaddress+item.address,
		'city':item.pcd?item.pcd.city:''
	}
	scope.tool.get_latlng(post,function(res){
		var lat_lng = res.location
		var address_components = res.address_components
		wx.openLocation({
			latitude: lat_lng.lat, // 纬度，浮点数，范围为90 ~ -90
			longitude: lat_lng.lng, // 经度，浮点数，范围为180 ~ -180。
			name: pcdaddress, // 位置名
			address: item.address, // 地址详情说明
			scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
			infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
			success:function(){
				//alert(1111);
			},
			fail:function(res){
				scope.message('导航异常，可能是权限问题：'+res.errMsg);
			}
		});
	});
}
</script>